package learn.spring.persistence.dao;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * @author suzheng
 * @version v.1.0
 */
public interface BlogMapper {

    @Select("SELECT link FROM t_articles limit 1")
    String selectContent();

    List<String> selectStr(@Param("id") Long id);

    @Update("update t_articles set create_dt=now() where id =#{id}")
    int updateCreateDt(@Param("id") Long id);
}
